package auth

type UserRole struct {
	ID     int64 `gorm:"primaryKey"`
	UserID int64 `gorm:"column:user_id;not null"`
	RoleID int64 `gorm:"column:role_id;not null"`
}

// TableName 设置user_role表名
func (ur *UserRole) TableName() string {
	return "user_role"
}
